/**
 * Copyright &copy; 2016-2017 <a href="https://www.lczyfz.com">联创智云</a> All rights reserved.
 */
package com.lczyfz.campusinfo.modules.wechatmsg.entity;

import org.hibernate.validator.constraints.Length;

import com.lczyfz.campusinfo.common.persistence.DataEntity;

/**
 * 微信消息接收者Entity
 * @author 陈维乾
 * @version 2018-05-18
 */
public class WeixinMsgRecevier extends DataEntity<WeixinMsgRecevier> {
	
	private static final long serialVersionUID = 1L;
	private String msgId;		// 微信消息id
	private String openId;		// openId
	
	public WeixinMsgRecevier() {
		super();
	}

	public WeixinMsgRecevier(String id){
		super(id);
	}

	@Length(min=1, max=64, message="微信消息id长度必须介于 1 和 64 之间")
	public String getMsgId() {
		return msgId;
	}

	public void setMsgId(String msgId) {
		this.msgId = msgId;
	}
	
	@Length(min=1, max=64, message="openId长度必须介于 1 和 64 之间")
	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}
	
}